package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.SystemAlert;
import org.springframework.stereotype.Repository;

@Repository
public class SystemAlertDao extends BaseDao<SystemAlert> {

    public SystemAlert getByKey(String key) {
        StringBuilder sbStr = new StringBuilder("select * from system_alert where type ='" + key + "'");
        String sql = sbStr.toString();
        return this.queryObj(sql, null, SystemAlert.class);
    }

}
